package com.ruoyi.product.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品浏览历史对象 t_product_browse
 *
 * @author tanfp
 * @date 2020-12-30
 */
public class ProductBrowse extends BaseEntity
        {
private static final long serialVersionUID=1L;

        /** id */
                                                        @Excel(name = "id")
                        private Long keyId;

            /** 用户id */
                                                        @Excel(name = "用户id")
                        private Long userId;

            /** 商品id */
                                                        @Excel(name = "商品id")
                        private Long productId;

            /** 商品图片 */
                                                        @Excel(name = "商品图片")
                        private String productImg;

            /** 商品单位，比如盒，份，个 */
                                                        @Excel(name = "商品单位，比如盒，份，个")
                        private String unit;

            /** 商品浏览时的现价 */
                                                        @Excel(name = "商品浏览时的现价")
                        private BigDecimal productPrice;

            /** 商品浏览时的原价 */
                                                        @Excel(name = "商品浏览时的原价")
                        private BigDecimal productOriginPrice;

                            /** 0未删除 1已删除 */
                                                        @Excel(name = "0未删除 1已删除")
                        private Integer delStatus;

                            public void setKeyId(Long keyId)
            {
            this.keyId = keyId;
            }

    public Long getKeyId()
            {
            return keyId;
            }
                            public void setUserId(Long userId)
            {
            this.userId = userId;
            }

    public Long getUserId()
            {
            return userId;
            }
                            public void setProductId(Long productId)
            {
            this.productId = productId;
            }

    public Long getProductId()
            {
            return productId;
            }
                            public void setProductImg(String productImg)
            {
            this.productImg = productImg;
            }

    public String getProductImg()
            {
            return productImg;
            }
                            public void setUnit(String unit)
            {
            this.unit = unit;
            }

    public String getUnit()
            {
            return unit;
            }
                            public void setProductPrice(BigDecimal productPrice)
            {
            this.productPrice = productPrice;
            }

    public BigDecimal getProductPrice()
            {
            return productPrice;
            }
                            public void setProductOriginPrice(BigDecimal productOriginPrice)
            {
            this.productOriginPrice = productOriginPrice;
            }

    public BigDecimal getProductOriginPrice()
            {
            return productOriginPrice;
            }
                                            public void setDelStatus(Integer delStatus)
            {
            this.delStatus = delStatus;
            }

    public Integer getDelStatus()
            {
            return delStatus;
            }
    
@Override
public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                                .append("keyId",getKeyId())
                                .append("userId",getUserId())
                                .append("productId",getProductId())
                                .append("productImg",getProductImg())
                                .append("unit",getUnit())
                                .append("productPrice",getProductPrice())
                                .append("productOriginPrice",getProductOriginPrice())
                                .append("createTime",getCreateTime())
                                .append("createBy",getCreateBy())
                                .append("updateTime",getUpdateTime())
                                .append("updateBy",getUpdateBy())
                                .append("delStatus",getDelStatus())
                .toString();
        }
        }
